package behavioral.state;

public class TCPConnection {
	TCPState _state;
	public TCPConnection() {
		_state = TCPClosed.getInstance();
	}
	public void changeState(TCPState state) {
		_state = state;
	}
	public void acknowledge() {
		_state.acknowledge(this);
	}

	public void activeOpen() {
		_state.activeOpen(this);
	}

	public void close() {
		_state.close(this);
	}

	public void passiveOpen() {
		_state.passiveOpen(this);
	}
}
